<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>住院收费</title>
</head>
<body>
<div class="easyui-panel" data-options="border:false,fit:true,onOpen:createNewPayID">
	<div class="easyui-layout" data-options="fit:true,border:false">
				<div data-options="region:'north',height:'24%',border:false">
					<fieldset class="tallylik">
						<legend>账单基本信息</legend>
						<form id="to_addNewPayTally_form" action="to_addNewPayTally" method="post">
						<table style="width: 95%; padding: 1px 1px;">
							<tr>
								<td width="20%"><input style="width: 98%;" name="LiveInId"
									id="PayTallyPageLiveID" labelWidth="60px"
									class="easyui-textbox" label="住院号："
									data-options="buttonIcon:'icon-search',buttonText:'搜索',onClickButton:createLiveInWindowForPay"></td>
								<td width="16%"><input style="width: 98%;"
									name="payTable.patientname2" class="easyui-textbox" label="姓名："
									id="PayTallyPageName" readonly="readonly" labelWidth="50px"></td>
								<td width="16%"><input style="width: 98%;"
									readonly="readonly" labelWidth="50px" id="PayTallyPageOffice"
									name="payTable.office2" class="easyui-textbox" label="科室："></td>
								<td width="16%"><input style="width: 98%;"
									labelWidth="65px" name="payTable.paytime" readonly="readonly"
									class="easyui-datebox" value="taday" label="收费时间："></td>
								<td width="16%"><input style="width: 98%;"
									labelWidth="65px" id="PayTallyPageDeposit" readonly="readonly"
									class="easyui-textbox" label="押金额度："></td>
								<td width="16%"><input style="width: 98%;"
									labelWidth="65px" id="PayTallyPageAlltally" readonly="readonly"
									class="easyui-textbox" label="住院消费："></td>
							</tr>
							<tr>
								<td width="20%"><input style="width: 98%;"
									id="PayTallyPagePayID" name="payTable.payid" readonly="readonly"
									labelWidth="60px" class="easyui-textbox" label="缴费号："></td>
								<td width="16%"><input style="width: 98%;"
									class="easyui-textbox" label="总计：" id="PayTallyPageTotal"
									name="payTable.payamount" readonly="readonly" labelWidth="50px"></td>
								<td width="16%"><input style="width: 98%;"
									readonly="readonly" labelWidth="50px" name="payTable.admini"
									class="easyui-textbox" label="审计：" value="李逸"></td>
								<td width="16%"><select style="width: 98%;"
									labelWidth="65px" name="payTable.paytype" class="easyui-combobox"
									value="taday" label="缴费类型：" data-options="panelHeight:'auto'">
										<option>现金支付</option>
										<option>微信支付</option>
										<option>银行卡支付</option>
								</select></td>
								<td width="16%"><input style="width: 98%;"
									labelWidth="65px" id="PayTallyPageHasPay" readonly="readonly"
									class="easyui-textbox" label="已结费用："></td>
								<td width="16%"><input style="width: 98%;"
									labelWidth="65px" id="PayTallyPageNoPay" readonly="readonly"
									class="easyui-textbox" label="未结费用："></td>
							</tr>
						</table>
						</form>
					</fieldset>
					<div style="text-align: right; margin-right: 10px;">
						<a href="#" class="easyui-linkbutton" onclick="addnewPayTally()"
							data-options="iconCls:'icon-save'">保存</a> <a href="#"
							class="easyui-linkbutton" data-options="iconCls:'icon-search'">查询</a>
					</div>
				</div>


			<div data-options="region:'east',width:'40%',border:false">
			<fieldset class="tallylik" style="width: 94%;height: 90%;">
				<legend>账单零细</legend>
				<table class="easyui-datagrid" id="PayTallyPage_NopayDetialTable"
					data-options="singleSelect:true,fitColumns: true, 
					nowrap: false,border:false,rownumbers:true,height:'95%',width:'100%'">
					<thead>
						<tr>
							<th data-options="field:'tallydetailsid',width:70,align:'center'">零细号</th>
							<th data-options="field:'chargename',width:50,align:'center'">收费项目</th>
							<th data-options="field:'price3',width:25,align:'center'">单价</th>
							<th data-options="field:'number',width:25,align:'center'">数量</th>
							<th data-options="field:'sum',width:30,align:'center'">总计</th>
						</tr>
					</thead>
				</table>
			</fieldset>
		</div>


		<div data-options="region:'center',border:false">
		<fieldset class="tallylik" style="width: 95%;height: 90%;">
				<legend>未结算住院账单</legend>
			<table class="easyui-datagrid"  id="PayTallyPage_NopayTable"
				data-options="singleSelect:false,fitColumns: true, 
				nowrap: false,border:false,rownumbers:true,checkOnSelect:false,
				pagination:true,pageList: [15,30,40,50],pageSize: 15,height:'97%',width:'100%',
				onCheck:countPayTotalforAdd,onUncheck:countPayTotalforAdd,
				onCheckAll:countPayTotalforAdd,onUncheckAll:countPayTotalforAdd,">
				<thead>
					<tr>
						<th data-options="field:'s',width:15,align:'center',checkbox:true"></th>
						<th data-options="field:'tallyid',width:70,align:'center'">账单编号</th>
						<th data-options="field:'tallytime',width:100,align:'center'">账单时间</th>
						<th data-options="field:'patientname5',width:40,align:'center'">病人姓名</th>
						<th data-options="field:'depositlimit4',width:70,align:'center'">住院号</th>
						<th data-options="field:'tallytotal',width:40,align:'center'">账单合计</th>
						<th data-options="field:'tallystatus',width:40,align:'center'">核算状态</th>
						<th data-options="field:'paystatus2',width:50,align:'center'">结算状态</th>
						<th data-options="field:'ppp',width:50,formatter:PayHandle,align:'center'">操作</th>
					</tr>
				</thead>
			</table>
			</fieldset>
		</div>
	</div>
</div>
<script type="text/javascript">
	//住院操作按钮
    var PayHandle = function(value,row,index){
		var tallyid = row.tallyid;
	var btn1 = "<input onclick='bookDetialInfo(\"" +tallyid+"\")' class='Pay_query_bt'  type='button' value='查看'>";
	return btn1;
	}
</script>
	
<style type="text/css">
.tallylik {
	border: 1px solid gray;
	border-radius: 5px;
	margin: 5px;
}
.Pay_query_bt{
	margin: 2px 8px 2px 0px;
	height:25px;
	border-radius: 3px;
	font-size: 14px;
	border: 1px #3366FF solid;
	background: #3399FF;
	color: white;
	}
</style>
</body>
</html>